package com.yhx.iservice;

import com.yhx.pojo.Order;
import com.yhx.pojo.OrderBo;
import com.yhx.pojo.OrderInfo;
import com.yhx.utils.Result;

import java.text.ParseException;
import java.util.List;

public interface IOrderService {
    Result doOrder(OrderBo orderBo) throws ParseException;
    //今日预约数
    Long getTodayOrderNumber();
    //今日到诊数
    Long getTodayVisitsNumber();
    //本周预约数
    Long getThisWeekOrderNumber();
    //本周到诊数
    Long getThisWeekVisitsNumber();
    //本月预约数
    Long getThisMonthOrderNumber();
    //本月到诊数
    Long getThisMonthVisitsNumber();

    List<OrderInfo> pagelist(String name,String tel,String date,int pageNum,int pageSize);

    Long currentPage(String name,String tel,String date);

    Result orderByTime(String activeName,
                                int pageNum,
                                int pageSize);
   Result pageList(String activeName,String name,String tel,String date,int pageNum,int pageSize);

   Order getByid(int id);

   Result update(Order order);
}
